package ManageGameHServer.code;

import org.json.JSONObject;

import ManageGameHServer.classFile.NoDBConnectO;
import redis.clients.jedis.Jedis;

public abstract class LoginWebWorker extends WebWorker {

	@Override
	public String execute() throws Exception {
		System.out.println(sessionData);
		if(!sessionData.isNull("isLogin") && sessionData.getInt("isLogin")==1){ //登录成功
			   return this.loginWorker();
		}else{
			return "<script>parent.location.href='/hthome/'</script>";
		}
	}
	 public abstract String loginWorker() throws Exception;
}
